﻿#if UNITY_EDITOR 
using UnityEditor;
#endif
namespace Model
{
    public static class ResourcesHelper
    {
        public static string[] GetDependencies(string assetBundleName)
        {
            string[] dependencies = new string[0];

            if (!Defines.IsAsync)
            {
#if UNITY_EDITOR
                dependencies = AssetDatabase.GetAssetBundleDependencies(assetBundleName, true);
                return dependencies;
#endif
            }

            dependencies = ResourcesManager.AssetBundleManifestObject.GetAllDependencies(assetBundleName);
            return dependencies;
        }
    }
}
